-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rest Endpoint to post auto theme review results to theme trac ticket. #26
Rest Endpoint to post auto theme review results to theme trac ticket. #26
Conversation
The difficult part is going to be how to make the messages more understandable.
Right now, the theme check results are displayed in the trac ticket, and some authors has expressed that it is unclear: Is the result also sent by email to the theme author? |
@carolinan What do you think about something like: |
wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-auto-review.php
Outdated
Show resolved
Hide resolved
Merged. |
This PR has been moved from #25.
Description
This PR adds a Rest controller that will be used to post the results of automated theme testing to a theme Trac ticket.
Details
//wordpress.org/themes/wp-json/themes/v1/github/{theme_slug}/{trac_ticket}
.Bearer {token}
must be included.content={message}
Ideal Rollout
We are already running tests on theme uploads: https://github.com/WordPress/theme-review-e2e/actions
We can start by only postings errors from the UI check. Since the majority of the tests only issue warnings, it will only post a subset of errors.
More specifically, it will catch:
Screenshot
The user that has posted the snippet below is not the same as the code. It will post the comment using the theme tracbot account.